package ext.opensource.netty.client.core;

public class ConnectCheckClient implements Runnable {
	private long count;
	private BaseClient client = null;

	public ConnectCheckClient(final BaseClient client) {
		this.client = client;
	}

	@Override
	public void run() {
		count++;
		if (count >= Long.MAX_VALUE) {
			count = 0;
		}
		if (client != null) {
			client.reConnect();
		}
	}
}
